package com.starhub.engine.directory.result;

import com.starhub.engine.document.entity.DocumentShare;
import lombok.Data;

import java.util.List;

@Data
public class DirectoryShareDealListResult {
    private List<DocumentShare> page;
    private long total;

    public static DirectoryShareDealListResult success(List<DocumentShare> page, long total) {
        DirectoryShareDealListResult result = new DirectoryShareDealListResult();
        result.setPage(page);
        result.setTotal(total);
        return result;
    }
}
